package com.legendshop.openportal.sdk.client.http;

import cn.hutool.http.HttpResponse;
import com.legendshop.openportal.sdk.model.OpenResult;
import com.legendshop.openportal.sdk.model.BaseResponse;

import java.lang.reflect.Type;

/**
 * @author jzh
 * @version 1.0.0
 * @title HttpResponseAnalyzer
 * @date 2024/6/18 11:08
 * @description：请求响应解析器
 */
public interface HttpResponseAnalyzer {

    /**
     * 解析结果
     * @param httpResponse
     * @param responseClass
     * @return
     * @param <T>
     */
    <T> OpenResult<T> analyze(HttpResponse httpResponse, Type responseClass);
}
